﻿using System;
using CodeMinder.Output.Interface;
using CodeMinder.Output.Interface.Entities;

namespace CodeMinder.Output.MotionChart
{
    public class JSMotionChartOutput : IGraphOutput
    {
        public void Poc()
        {
            var pocData = new DataReport
                              {
                                  Activities = new[]
                                      {
                                          new Activity
                                              {
                                                  User = "matan",
                                                  Date = DateTime.Now,
                                                  PrecentageOfCheckIns = 5,
                                                  PrecentageOfFilesAffected = 1
                                              },
                                        new Activity
                                        {
                                            User = "matan",
                                            Date = DateTime.Now.AddDays(1),
                                            PrecentageOfCheckIns = 15,
                                            PrecentageOfFilesAffected = 1
                                        },
                                      }
                              };
        }

        private readonly Entities.MotionChart _motionChart;

        public JSMotionChartOutput(Entities.MotionChart motionChart)
        {
            _motionChart = motionChart;
        }

        public string GenerateScript()
        {
            return _motionChart.ToScript();
        }
    }
}